package com.sc.VenusQueryBeta.contract.account.daikuan;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.daikuan.DaiKuanBean02;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/10/19.
 * 贷款明细
 */

public interface DaiKuan02Contract {
    abstract class DaiKaunPresenter extends BasePresenter<IDaiKuan02nModel,IDaiKuan02Activity> {
        //加载贷款明细数据
        public abstract void getdaikuan02(String serverAddress, String projectName, int serverPort,int clientindex, int roomid,
                                        String clientAppmsgnum,String currencynameCN);

        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);

        /**
         * 加载更多test list
//         */
        public abstract void getMoreDaikuan02(String serverAddress, String projectName, int serverPort,int clientindex, int roomid,
                                            String clientAppmsgnum,String currencynameCN );
    }

    interface IDaiKuan02nModel extends IBaseModel {

        Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);

        //贷款明细
        Observable<DaiKuanBean02> getDaiKuan02(String serverAddress, String projectName, int serverPort, int clientindex, int start, int limit, int roomid,
                                               String clientAppmsgnum,String currencynameCN);
    }
    interface IDaiKuan02Activity extends IBaseActivity {

        /**
         * 俠士存卡02數據成功
         * @param daiKuanBean02
         */
        void showDaiKuanData2Success(DaiKuanBean02 daiKuanBean02);

        void showNetworkError(Throwable throwable);

        /** 显示加载更多错误
         */
        void showLoadMoreError();

        void showqueryAllCurrencyList(CurrencyListBean CurrencyListBean);

        /**
         * 显示没有更多数据
         */
        void showNoMoreDatareData();
    }
}
